package com.lingnan.entity.po;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.time.LocalDateTime;
import java.util.Date;

@Data
@EqualsAndHashCode(callSuper = false)
public class CommunityPost {
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;
    private Long userId;
    private String title;
    private String content;
    private Date createdAt;
    private Date updatedAt;
    private Integer status = 1;
    private Integer likeCount = 0;  // 新增点赞数字段
}